placesview: Simplify
authorBenjamin Otte <otte@redhat.com>
Sun, 20 Mar 2016 04:18:38 +0000 (05:18 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 20 Mar 2016 04:18:38 +0000 (05:18 +0100)
http://www.viva64.com/en/b/0383/

gtk/gtkplacesview.c

index e8ab18c9084383cb64c946d4697f4ea9a545d4e7..b91394f7e75748d3ddd646b0d1c2056a6146ddfe 100644 (file)
@@ -705,8 +705,7 @@ add_volume (GtkPlacesView *view,
   name = g_volume_get_name (volume);
   path = !is_network ? g_volume_get_identifier (volume, G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE) : NULL;
 
-  if (!mount ||
-      (mount && !g_mount_is_shadowed (mount)))
+  if (!mount || !g_mount_is_shadowed (mount))
     {
       GtkWidget *row;